/* 前几个程序中，熟悉了构造顺序后，
本例增加了静态成员初始化， 自己判断一下静态成员初始化排在哪一步 */
class Bowl{    
    Bowl(){ System.out.println("Bowl默认构造");}
    Bowl(int marker) {
        System.out.println("Bowl(" + marker + ")");
    }
}

class Cupboard extends Bowl{
    Bowl bowl1 = new Bowl(3);
    static Bowl bowl2 = new Bowl(1);
    int i;
    static int j = 5;
    Cupboard() {
        System.out.println("i:" + i);
        bowl4 = new Bowl(j);
        j = 6; 
    }
    Bowl bowl3 = new Bowl(4);
    static Bowl bowl4 = new Bowl(2);
}

public class P5_ParaInitialization {
    public static void main(String args[]) {
        new Cupboard();
        new Cupboard();
    }
}
